if (typeof Promise !== "undefined" && !Promise.prototype.finally) {
  Promise.prototype.finally = function(callback) {
    const promise = this.constructor;
    return this.then(
      (value) => promise.resolve(callback()).then(() => value),
      (reason) => promise.resolve(callback()).then(() => {
        throw reason;
      })
    );
  };
}
;
if (typeof uni !== "undefined" && uni && uni.requireGlobal) {
  const global = uni.requireGlobal();
  ArrayBuffer = global.ArrayBuffer;
  Int8Array = global.Int8Array;
  Uint8Array = global.Uint8Array;
  Uint8ClampedArray = global.Uint8ClampedArray;
  Int16Array = global.Int16Array;
  Uint16Array = global.Uint16Array;
  Int32Array = global.Int32Array;
  Uint32Array = global.Uint32Array;
  Float32Array = global.Float32Array;
  Float64Array = global.Float64Array;
  BigInt64Array = global.BigInt64Array;
  BigUint64Array = global.BigUint64Array;
}
;
if (uni.restoreGlobal) {
  uni.restoreGlobal(Vue, weex, plus, setTimeout, clearTimeout, setInterval, clearInterval);
}
(function(vue) {
  "use strict";
  function formatAppLog(type, filename, ...args) {
    if (uni.__log__) {
      uni.__log__(type, filename, ...args);
    } else {
      console[type].apply(console, [...args, filename]);
    }
  }
  const _export_sfc = (sfc, props) => {
    const target = sfc.__vccOpts || sfc;
    for (const [key, val] of props) {
      target[key] = val;
    }
    return target;
  };
  const _sfc_main$2 = {
    data() {
      return {
        title: "Hello",
        info: {
          date: "",
          news: [],
          weiyu: "",
          image: "",
          head_image: ""
        }
      };
    },
    onLoad() {
      this.getData();
    },
    methods: {
      getData() {
        uni.request({
          url: "https://v2.alapi.cn/api/zaobao",
          //仅为示例，并非真实接口地址。
          data: {
            "token": "qlVquQZPYSeaCi6u",
            "format": "json"
          },
          success: (res) => {
            this.info = res.data.data;
            formatAppLog("log", "at pages/index/index.vue:49", this.info);
          }
        });
      },
      toDetail(item) {
        uni.navigateTo({
          url: "/pages/detail/detail?image=" + item.image
        });
      }
    }
  };
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("view", {
      class: "new-beauty-content",
      onClick: _cache[0] || (_cache[0] = ($event) => $options.toDetail($data.info))
    }, [
      vue.createElementVNode("view", { class: "date-card" }, [
        vue.createElementVNode(
          "text",
          { class: "date-text" },
          vue.toDisplayString($data.info.date),
          1
          /* TEXT */
        )
      ]),
      vue.createElementVNode("view", { class: "weiyu-card" }, [
        vue.createElementVNode(
          "text",
          { class: "weiyu-text" },
          vue.toDisplayString($data.info.weiyu),
          1
          /* TEXT */
        )
      ]),
      vue.createElementVNode("view", { class: "image-card" }, [
        vue.createElementVNode("image", {
          class: "head-image",
          src: $data.info.head_image
        }, null, 8, ["src"])
      ]),
      vue.createElementVNode("scroll-view", {
        class: "news-list-scroll",
        "scroll-y": ""
      }, [
        (vue.openBlock(true), vue.createElementBlock(
          vue.Fragment,
          null,
          vue.renderList($data.info.news, (item, index) => {
            return vue.openBlock(), vue.createElementBlock("view", {
              class: "news-item",
              key: index
            }, [
              vue.createElementVNode(
                "text",
                { class: "news-text" },
                vue.toDisplayString(item),
                1
                /* TEXT */
              )
            ]);
          }),
          128
          /* KEYED_FRAGMENT */
        ))
      ])
    ]);
  }
  const PagesIndexIndex = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$1], ["__file", "/Users/jianguo/Desktop/study/uniappforharmony/DaysMatter/pages/index/index.vue"]]);
  const _sfc_main$1 = {
    data() {
      return {
        image: ""
      };
    },
    methods: {},
    onLoad(e) {
      formatAppLog("log", "at pages/detail/detail.vue:16", e);
      this.image = e.image;
    }
  };
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
    return vue.openBlock(), vue.createElementBlock("view", { class: "container" }, [
      vue.createElementVNode("image", {
        class: "image",
        src: $data.image
      }, null, 8, ["src"])
    ]);
  }
  const PagesDetailDetail = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/Users/jianguo/Desktop/study/uniappforharmony/DaysMatter/pages/detail/detail.vue"]]);
  __definePage("pages/index/index", PagesIndexIndex);
  __definePage("pages/detail/detail", PagesDetailDetail);
  const _sfc_main = {
    onLaunch: function() {
      formatAppLog("log", "at App.vue:4", "App Launch");
    },
    onShow: function() {
      formatAppLog("log", "at App.vue:7", "App Show");
    },
    onHide: function() {
      formatAppLog("log", "at App.vue:10", "App Hide");
    }
  };
  const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/jianguo/Desktop/study/uniappforharmony/DaysMatter/App.vue"]]);
  function createApp() {
    const app = vue.createVueApp(App);
    return {
      app
    };
  }
  const { app: __app__, Vuex: __Vuex__, Pinia: __Pinia__ } = createApp();
  uni.Vuex = __Vuex__;
  uni.Pinia = __Pinia__;
  __app__.provide("__globalStyles", __uniConfig.styles);
  __app__._component.mpType = "app";
  __app__._component.render = () => {
  };
  __app__.mount("#app");
})(Vue);
